<?php
	include("conn.php");
	$stmt = $db->prepare("select * from file");
	$stmt->execute();
	$x=array();
	while($result= $stmt->fetch(PDO::FETCH_ASSOC))
		$x[] = $result;
	echo json_encode($x);
?>